import Mock from 'mockjs';

Mock.mock(
  '/image',
  'get',
  () => ({
    status: '200',
    message: '请求成功',
    data: [
      {
        tag: 'yet-another-image:latest',
        created: '2019-11-13T06:06:01+00:00',
        envs: {
          PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin',
          LANG: 'C.UTF-8',
          JAVA_HOME: '/usr/lib/jvm/java-1.8-openjdk/jre',
          JAVA_VERSION: '8u212',
          JAVA_ALPINE_VERSION: '8.212.04-r0',
        },
        lastTagTime: '2019-11-13T14:06:03+08:00',
        labels: {
          date: '2019-11-13T06:05:57+00:00',
          language: 'java8',
          source: 'root3',
        },
      },
      {
        tag: 'test-image-create:latest',
        created: '2019-11-13T05:58:51+00:00',
        envs: {
          PATH: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin',
          LANG: 'C.UTF-8',
          JAVA_HOME: '/usr/lib/jvm/java-1.8-openjdk/jre',
          JAVA_VERSION: '8u212',
          JAVA_ALPINE_VERSION: '8.212.04-r0',
        },
        lastTagTime: '2019-11-13T13:58:53+08:00',
        labels: {
          date: '2019-11-13T05:58:39+00:00',
          language: 'java8',
          source: 'root3',
        },
      },
    ],
  }),
);
